package game.view.event 
{
	import starling.events.Event;
	/**
	 * ...
	 * @author Thot
	 */
	public class BuildingEvent extends Event
	{
		
		static public const TOUCH_BUILDING:String = "touchBuilding";
		
		public function BuildingEvent( p_type:String, p_buildingName:String = "", p_bubbles:Boolean = false, p_data:Object = null ) 
		{
			p_data = p_data || new Object();
			p_data.buildingName = p_buildingName;
			super( p_type, p_bubbles, p_data );
		}
		
		public function get buildingName():String
		{
			return data.buildingName as String;
		}
		
	}

}